const _toString = object.prototype.toString;
const isPlainObject = obj=>{
    return _toString.call(obj) === '[object Object]'
}
const App = props=>{
    const {data} = props||{}
    const nameList = []
    if(isPlainObject(data)){
    nameList = Object.keys(data)
    }
}

const appFn = async props=>{
    const {data} = props||{}
    let urlList =  []
    if(Array.isArray(data)){
    const jobs = data.map(async item=>{
        const {id=''} = item||{}
        const res = await getUrl(id)
        if(res) urlList.push(res);
        return res
    })
    await Promise.all(jobs)
    console.log(urlList)
    }
}